<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="gwt:property" content="locale=zh_CN" />
<title>SonarQube - ${projectKey!}</title>
<script src="${sonarUrl!}/images/trend/sonar.js" type="text/javascript"></script>
<style type="text/css" media="all" >
html{color:#000;background:#FFF;}
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}
table{border-collapse:collapse;border-spacing:0;}
fieldset,img{border:0;}
address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}
ol,ul{list-style:none;}
caption,th{text-align:left;}
h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}
body{font:13px/1.231 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}
table{font-size:inherit;font:100%;}
body,a{color:#444;}
</style>
</head>
<body>
	<table width="100%">
	<tr>
		<td>
		

	<table border="1" width="800">
		<tr>
			<th colspan="5" bgcolor="#003366" style="background-color: #003366; color: #ffffff; font-family: Arial, FreeSans, Helvetica, sans-serif; font-size: 12px; line-height: 1;">代码规范评估结果</th>
		</tr>
		<tr>
			<td valign="top" width="20%"><span style="font-weight: bold;">代码行数</span> <br /> <span><a
					href="${sonarUrl!}/drilldown/measures/${projectId!}?metric=ncloc"><span id="m_ncloc">${ncloc!}</span></a></span> <br /> <a
				href="${sonarUrl!}/drilldown/measures/${projectId!}?metric=lines"><span id="m_lines">${lines!}</span> 行</a> <br /> <a
				href="${sonarUrl!}/drilldown/measures/${projectId!}?metric=statements"><span id="m_statements">${statements!}</span> 语句</a> <br /> <a
				href="${sonarUrl!}/drilldown/measures/${projectId!}?metric=files"><span id="m_files">${files!}</span> 文件</a></td>
			<td valign="top" width="20%"><span style="font-weight: bold;">类</span> <br /> <span><a
					href="${sonarUrl!}/drilldown/measures/${projectId!}?metric=classes"><span id="m_classes">${classes!}</span></a></span> <br /> <a
				href="${sonarUrl!}/drilldown/measures/${projectId!}?metric=packages"><span id="m_packages">${packages!}</span> 包</a> <br /> <a
				href="${sonarUrl!}/drilldown/measures/${projectId!}?metric=functions"><span id="m_functions">${functions!}</span> 方法</a> <br /> <a
				href="${sonarUrl!}/drilldown/measures/${projectId!}?metric=accessors"><span id="m_accessors">${accessors!}</span> 存取</a></td>
			<td valign="top" width="20%"><span style="font-weight: bold;">文档</span> <br /> <span><a
					href="${sonarUrl!}/drilldown/measures/${projectId!}?highlight=public_documented_api_density&metric=public_undocumented_api" class="" rel="" title=""><span
						id="m_public_documented_api_density">${public_documented_api_density!}%</span></a></span> 已注释API <br /> <a
				href="${sonarUrl!}/drilldown/measures/${projectId!}?metric=public_api"><span id="m_public_api">${public_api!}</span> 公共API</a> <br /> <a
				href="${sonarUrl!}/drilldown/measures/${projectId!}?metric=public_undocumented_api"><span id="m_public_undocumented_api">${public_undocumented_api!}</span>
					未注释API</a></td>

			<td valign="top" width="20%"><span style="font-weight: bold;">注释</span> <br /> <a
				href="${sonarUrl!}/drilldown/measures/${projectId!}?metric=comment_lines_density"><span id="m_comment_lines_density">${comment_lines_density!}%</span></a> <br />
				<a href="${sonarUrl!}/drilldown/measures/${projectId!}?metric=comment_lines"><span id="m_comment_lines">${comment_lines!}</span> 行</a></td>
			<td valign="top" width="20%"><span style="font-weight: bold;">代码覆盖率</span> <br /> <span>-</span></td>
		</tr>
		<tr>
			<td valign="top"><span style="font-weight: bold;">重复</span> <br /> <a
				href="${sonarUrl!}/drilldown/measures/${projectId!}?highlight=duplicated_lines_density&metric=duplicated_lines"><span id="m_duplicated_lines_density">${comment_lines_density!}%</span></a>
				<br /> <a href="${sonarUrl!}/drilldown/measures/${projectId!}?metric=duplicated_lines"><span id="m_duplicated_lines">${duplicated_lines!}</span> 行</a> <br />
				<a href="${sonarUrl!}/drilldown/measures/${projectId!}?metric=duplicated_blocks"><span id="m_duplicated_blocks">${duplicated_blocks!}</span> 块</a> <br /> <a
				href="${sonarUrl!}/drilldown/measures/${projectId!}?metric=duplicated_files"><span id="m_duplicated_files">${duplicated_files!}</span> 文件</a></td>
			<td valign="top"><span style="font-weight: bold;">复杂度</span> <br /> <span><a
					href="${sonarUrl!}/drilldown/measures/${projectId!}?metric=function_complexity"><span id="m_function_complexity">${function_complexity!}</span></a></span> /方法 <br />
				<span><a href="${sonarUrl!}/drilldown/measures/${projectId!}?metric=class_complexity"><span id="m_class_complexity">${class_complexity!}</span></a></span> /类
				<br /> <span><a href="${sonarUrl!}/drilldown/measures/${projectId!}?metric=file_complexity"><span id="m_file_complexity">${file_complexity!}</span></a></span>
				/文件 <br /> 总数: <a href="${sonarUrl!}/drilldown/measures/${projectId!}?metric=complexity"><span id="m_complexity">${complexity!}</span></a></td>
			<td valign="top"><span style="font-weight: bold;">问题</span> <br /> <a href="${sonarUrl!}/drilldown/issues/${projectKey!}"><span id="m_violations">${violations!}</span></a>
				<br /> <span style="font-weight: bold;">遵守规则</span> <br /> <a
				href="${sonarUrl!}/drilldown/measures/${projectId!}?highlight=weighted_violations&metric=weighted_violations"><span id="m_violations_density">${violations_density!}%</span></a>
			</td>
			<td>
				<table class="clear width100">
					<tr>
						<td><img alt="Blocker" src="${sonarUrl!}/images/priority/BLOCKER.png"></td>
						<td>&nbsp;<a href="${sonarUrl!}/drilldown/issues/${projectKey!}?severity=BLOCKER">阻断</a></td>
						<td style="padding: 0 5px;" align="right"><span id="m_blocker_violations">${blocker_violations!}</span></td>
						<td><img alt="" height="10" src="${sonarUrl!}/images/trend/0.png" title="" width="10"></td>
					</tr>
					<tr>
						<td><img alt="Critical" src="${sonarUrl!}/images/priority/CRITICAL.png"></td>
						<td>&nbsp;<a href="${sonarUrl!}/drilldown/issues/${projectKey!}?severity=CRITICAL">严重</a></td>
						<td style="padding: 0 5px;" align="right"><span id="m_critical_violations">${critical_violations!}</span></td>
						<td><img alt="" height="10" src="${sonarUrl!}/images/trend/2-red.png" title="" width="10"></td>
					</tr>
					<tr>
						<td><img alt="Major" src="${sonarUrl!}/images/priority/MAJOR.png"></td>
						<td>&nbsp;<a href="${sonarUrl!}/drilldown/issues/${projectKey!}?severity=MAJOR">主要</a></td>
						<td style="padding: 0 5px;" align="right"><span id="m_major_violations">${major_violations!}</span></td>
						<td><img alt="" height="10" src="${sonarUrl!}/images/trend/2-red.png" title="" width="10"></td>
					</tr>
					<tr>
						<td><img alt="Minor" src="${sonarUrl!}/images/priority/MINOR.png"></td>
						<td>&nbsp;<a href="${sonarUrl!}/drilldown/issues/${projectKey!}?severity=MINOR">次要</a></td>
						<td style="padding: 0 5px;" align="right"><span id="m_minor_violations">${minor_violations!}</span></td>
						<td><img alt="" height="10" src="${sonarUrl!}/images/trend/1-red.png" title="" width="10"></td>
					</tr>
					<tr>
						<td><img alt="Info" src="${sonarUrl!}/images/priority/INFO.png"></td>
						<td>&nbsp;<a href="${sonarUrl!}/drilldown/issues/${projectKey!}?severity=INFO">信息</a></td>
						<td style="padding: 0 5px;" align="right"><span id="m_info_violations">${info_violations!}</span></td>
						<td><img alt="" height="10" src="${sonarUrl!}/images/trend/2-red.png" title="" width="10"></td>
					</tr>
				</table>
			</td>
			<td valign="top"><span style="font-weight: bold;">单元测试成功</span> <br /> <a href="${sonarUrl!}/drilldown/measures/${projectId!}?metric=tests"><span
					id="m_tests">${tests!}</span> 测试</a></td>

		</tr>
		<tr>
			<td colspan="5"><span style="font-weight: bold;">代码规范评估明细地址：</span><a href="${sonarUrl!}/dashboard/index/${projectId!}">${sonarUrl!}/dashboard/index/${projectId!}</a></td>
		</tr>
	</table>
	
		</td>

	<tr>
	   <td height="30">
	   
	   </td>
	</tr>
	
	<tr>
	    <td>
	        <table border="1" width="800">
	            <tr>
	               <th colspan="2" bgcolor="#003366" style="background-color: #003366; color: #ffffff; font-family: Arial, FreeSans, Helvetica, sans-serif; font-size: 12px; line-height: 1;">严重违反规范清单</th>
	            </tr>
	            <tr>
	               <td><span style="font-weight: bold;">类名</span></td>
	               <td><span style="font-weight: bold;">规范</span></td>
	            </tr>
	                    <#if seriousList??>
	                   <#list seriousList as seriousProblem>
	            <tr>
	                    <td>${seriousProblem.problemScope}</td>
	                    <td>${seriousProblem.ruleKey}</td>
	            </tr>
	              </#list>
	              </#if>
	       
	        </table>
	    </td>
	</tr>
		</tr>
		<tr>
	   <td height="30">
	   
	   </td>
	</tr>
	
	<tr>
	   <td>
	       <table border="1" width="800">
	            <tr>
	               <th colspan="3" bgcolor="#003366" style="background-color: #003366; color: #ffffff; font-family: Arial, FreeSans, Helvetica, sans-serif; font-size: 12px; line-height: 1;">涉及项目清单</th>
	            </tr>
	            <tr>
	               <td><span style="font-weight: bold;">上线ID</span></td>
	               <td><span style="font-weight: bold;">关键字</span></td>
	               <td><span style="font-weight: bold;">需求名称</span></td>
	            </tr>
	            <#if onLineDemanList??>
	                   <#list onLineDemanList as onLineDeman>
	            <tr>
	                    <td>${onLineDeman.onLineId}</td>
	                    <td>${onLineDeman.pkey}</td>
	                    <td>${onLineDeman.demand}</td>
	            </tr>
	              </#list>
	              </#if>
	        </table>
	   </td>
	
	</tr>
	</table>	
</body>

</html>